package com.tjackson.web;

import com.tjackson.mapper.TestMapper;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.defaults.DefaultSqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: LI-CI-GAO
 * 作者: licigao
 * 日期: 2021/9/10  15:03
 * 描述:
 */
@RestController
public class TestController {


    @Autowired
    private SqlSessionFactory sqlSessionFactory;


    @RequestMapping("test00")
    public void test00(){

        DefaultSqlSession sqlSession = (DefaultSqlSession)sqlSessionFactory.openSession();
        sqlSession.getMapper(TestMapper.class);

    }

}
